
#ifndef MAINSCENE_H
#define MAINSCENE_H

#include <QWidget>
#include"bird.h"


QT_BEGIN_NAMESPACE
namespace Ui { class MainScene; }
QT_END_NAMESPACE

class MainScene : public QWidget

{
    Q_OBJECT

public:
    MainScene(QWidget *parent = nullptr);
    ~MainScene();

    //指向一个鸟对象的指针
    Bird * m_Bird;

    //绘图
    void paintEvent(QPaintEvent*);

private:
    Ui::MainScene *ui;
};

#endif // MAINSCENE_H
